import request from '@/utils/request'

// 查询咨询帮助列表
export function listHelp(query) {
  return request({
    // url: '/system/help/list',
    url: '/consult/help/list',
    method: 'get',
    Headers: 'application/x-www-form-urlencoded' ,
    params: query
  })
}

// 获取查询咨询帮助详细
export function getHelp(id) {
  return request({
    // url: '/system/help/' + id,
    url: '/consult/help/' + id,
    method: 'get'
  })
}

// 新增咨询帮助
export function addHelp(data) {
  return request({
    // url: '/system/help',
    url: '/consult/help',
    method: 'post',
    data: data
  })
}

// 修改咨询帮助
export function updateHelp(data) {
  return request({
    // url: '/system/help',
    url: '/consult/help',
    method: 'put',
    data: data
  })
}

// 删除咨询帮助
export function delHelp(id) {
  return request({
    // url: '/system/help/' + id,
    url: '/consult/help/' + id,
    method: 'delete'
  })
}

// 导出咨询帮助
export function exportHelp(query) {
  return request({
    // url: '/system/help/export',
    url: '/consult/help/export',

    method: 'get',
    params: query
  })
}